package com.beiding.workordersystem.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
@TableName("menu_item")
public class MenuItemEntity {

    @TableId
    private String id;

    //菜单名称
    private String name;

    //菜单路径
    private String path;

    //父级节点
    private String pid;

    @TableField(exist = false)
    private List<MenuItemEntity> children;

}
